﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Team4Mock.UserControl.Address
{
    public partial class ListAddress : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
                DataTable dt = new DataTable();
                dt.Columns.Add("ID", typeof(int));
                dt.Columns.Add("Address");
                dt.Columns.Add("Post Code");
                dt.Columns.Add("Town");
                dt.Columns.Add("County");
                dt.Columns.Add("Country");
                dt.Rows.Add(1, "Address 1", "SE10 80880", "London", "Greenwich", "Britan");
                dt.Rows.Add(2, "Address 1", "SE10 80880", "London", "Greenwich", "Britan");
                dt.Rows.Add(3, "Address 1", "SE10 80880", "London", "Greenwich", "Britan");
                dt.Rows.Add(4, "Address 1", "SE10 80880", "London", "Greenwich", "Britan");
                gvAddress.DataSource = dt;
                gvAddress.DataBind();
            }
        }
    }
}